<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Runs a form</title>
 </head>
 <body class="docs"><div id="layout">
  <div id="layout-content"><div id="function.newt-form-run" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">newt_form_run</h1>
  <p class="verinfo">(PECL newt &gt;= 0.1)</p><p class="refpurpose"><span class="refname">newt_form_run</span> &mdash; <span class="dc-title">Runs a form</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.newt-form-run-description">
  <h3 class="title">说明</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>newt_form_run</strong></span>
    ( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$form</code></span>
   , <span class="methodparam"><span class="type">array</span> <code class="parameter reference">&$exit_struct</code></span>
   ) : <span class="type"><span class="type void">void</span></span></div>

  <p class="para rdfs-comment">
   This function runs the form passed to it.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.newt-form-run-parameters">
  <h3 class="title">参数</h3>
  <p class="para">
   <dl>

    
     <dt>
<code class="parameter">form</code></dt>

     <dd>

      <p class="para">
       Form component
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">exit_struct</code></dt>

     <dd>

      <p class="para">
       Array, used for returning information after running the form component.
       Keys and values are described in the following table:
       <table class="doctable table">
        <caption><strong>Form Exit Structure</strong></caption>
        
         <thead>
          <tr>
           <th>Index Key</th>
           <th>Value Type</th>
           <th>Description</th>
          </tr>

         </thead>

         <tbody class="tbody">
          <tr>
           <td>reason</td>
           <td>integer</td>
           <td>
            The reason, why the form has been exited. Possible values are
            defined <a href="constants.newt.reasons.html" class="link">here</a>.
           </td>
          </tr>

          <tr>
           <td>watch</td>
           <td>resource</td>
           <td>Resource link, specified in
           <span class="function"><a href="newt_form_watch_fd.html" class="function">newt_form_watch_fd()</a></span></td>
          </tr>

          <tr>
           <td>key</td>
           <td>integer</td>
           <td>Hotkey</td>
          </tr>

          <tr>
           <td>component</td>
           <td>resource</td>
           <td>Component, which caused the form to exit</td>
          </tr>

         </tbody>
        
       </table>

      </p>
     </dd>

    
   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.newt-form-run-returnvalues">
  <h3 class="title">返回值</h3>
  <p class="para">
   没有返回值。
  </p>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.newt-form-run-seealso">
  <h3 class="title">参见</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="newt_run_form.html" class="function" rel="rdfs-seeAlso">newt_run_form()</a> - Runs a form</span></li>
   </ul>
  </p>
 </div>


</div></div></div></body></html>